package m3d30;
//递归
public class iRecursion {
    public static void main(String[] args) {
        System.out.println(a(5));
    }

    public static int a(int num){
        if(num==1){
            return 1;
        }
        else
            return a(num-1)+num;
    }
}
